package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(contextId = FeignConst.HKS_COMM, name = FeignConst.SERVICE_NAME)
@Api(tags = "通用交易", value = "通用交易")
public interface CommFeignClient {

    @ApiOperation(httpMethod = "POST", value = "获取短信验证码(未登录)")
    @RequestMapping(value = "/comm/getSmsCodeBeforeLogin")
    SmsCodeGetRes process(@RequestBody SmsCodeGetBeforeLoginReq req);

    @ApiOperation(httpMethod = "POST", value = "获取短信验证码(已登录)")
    @RequestMapping(value = "/comm/getSmsCodeAfterLogin")
    SmsCodeGetRes process(@RequestBody SmsCodeAfterLoginReq req);

    @ApiOperation(httpMethod = "POST", value = "图片上传")
    @RequestMapping(value = "/comm/imageUpload")
    ImageUploadRes imageUpload(@RequestBody ImageUploadReq req);

    @ApiOperation(httpMethod = "POST", value = "身份证OCR识别")
    @RequestMapping(value = "/comm/idCardOcr")
    IdCardOcrRes idCardOcr(@RequestBody IdCardOcrReq req);
}
